package work.linruchang.oauthclientproject.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 请求体内容、请求方式、响应码枚举
 *
 * @author LinRuChang
 * @version 1.0
 * @date 2022/07/28
 * @since 1.8
 **/
@AllArgsConstructor
@Getter
public enum ResponseCodeEnum {

    SUCCESS("200", "处理成功"),
    FAIL("500", "服务器处理请求出错"),
    UN_AUTHORIZED("-1000", "未登录或者授权码过期,请重新登录"),
    MISS_CONFIG("-2000", "系统缺失配置"),
    TASK_EXECUTE_ERROR("-3000", "任务执行异常");

    /**
     * 响应码
     **/
    String code;
    String description;
}
